package net.osweb.crm.modules.event.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Searchhistory entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "event_searchhistory")
public class SearchHistory implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 6054742543793844351L;
	private Integer id;
	private Integer userid;
	private String alias;
	private Integer typ;
	private String keywords;
	private String category;

	// Constructors

	/** default constructor */
	public SearchHistory() {
	}

	/** full constructor */
	public SearchHistory(Integer userid, String alias, Integer typ,
			String keywords, String category) {
		this.userid = userid;
		this.alias = alias;
		this.typ = typ;
		this.keywords = keywords;
		this.category = category;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "alias")
	public String getAlias() {
		return this.alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	@Column(name = "typ")
	public Integer getTyp() {
		return this.typ;
	}

	public void setTyp(Integer typ) {
		this.typ = typ;
	}

	@Column(name = "keywords")
	public String getKeywords() {
		return this.keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	@Column(name = "category")
	public String getCategory() {
		return this.category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

}